﻿<template>
    <div>
        <h2>你好,欢迎来到About路由组件</h2>
    </div>
</template>

<script>
    export default {
        name: 'About',
        components:{},
        //当路由进入之前
        //通过路由规则，进入该组件时被调用
        beforeRouteEnter (to, from, next ) {
            // ...
            console.log('App--beforeRouteEnter')
            next()
        },
        //当路由离开之前
        //通过路由规则，离开该组件时被调用
        /* beforeRouteLeave (to, from, next) {
            // ...
        } */
    }
</script>

<style scoped>

</style>